<?php
namespace Cyfy\Modules\RelatedLinks\Forms;
use \Cyfy\Message;
use \Cyfy\Modules\Forms;

/**
 * Editing quick link
 */
class Edit extends Create
{
	function submit()
	{  
        $this -> onSubmit = "Blocks.reload('RelatedLinks', 'links');";
		if(\dibi :: query("UPDATE [:cyfy:RelatedLinks] SET %a", $this -> getAll(), " WHERE [lid] = %i", $this -> getTemp('lid')));
        {
			\Cyfy\Message :: set(self :: t(221, array($this->get("name"))));
           
            return true;     
		}	
	}	
}
